-- GENERATED SPELL FOR [Moa'ki Warrior] --


function spell0_27178(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27178', 1500, 1)
end

function Sorts_27178(pUnit, Event)
local choix_sorts_27178 = math.random(0, 0)
if choix_sorts_27178 == 0 then
pUnit:RegisterEvent('spell0_27178', 1, 1)
end
end

function mob27178_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27178', math.random(1500, 3000), 1)
end

function mob27178_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27178_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27178_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27178, 1, 'mob27178_Action')
RegisterUnitEvent(27178, 2, 'mob27178_Leave')
RegisterUnitEvent(27178, 3, 'mob27178_Kill')
RegisterUnitEvent(27178, 4, 'mob27178_Die')
